﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
    <script type="text/jscript" language = "JavaScript">
        function ConcatenateFileds() {
            var message = "";
            document.getElementById("message").innerHTML = message;
            message += document.getElementById("firstBox").value;
            message += document.getElementById("secondBox").value;

            var now = new Date();
            message += now;

            document.getElementById("message").innerHTML += message;
        }

    </script>
</head>
<body>
    <input type="text"  id ="firstBox" />
    <input type="text"  id ="secondBox" />
    <input type="submit" value="submit" onclick ="ConcatenateFileds()"/>
    <p id="message"></p>
</body>
</html>
